package com.zb.kc.controller;

import com.zb.kc.commonutils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;

@RestController
@Slf4j
@RequestMapping("/eduservice/user")
public class EduLoginController {

    @PostMapping("login")
    public R login() {
        return R.ok().data("token", "admin1234");
    }

    @GetMapping("info")
    public R info() {
        return R.ok().data("roles", Arrays.asList("teacher")).data("name", "郑强").data("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }

}
